using System;
using System.Runtime.Serialization;
using MongoDB.Bson.DefaultSerializer;

namespace Storage
{
    [DataContract]
    public class Entity
    {
        public Entity(Guid id)
        {
            Id = id;
        }

        [DataMember]
        [BsonId]
        public Guid Id { get; private set; }

        [DataMember]
        public byte[] Body { get; set; }

        [DataMember]
        public byte[] Thumbnail { get; set; }
        
    }
}